package org.gwu.seuss.service;

import org.apache.log4j.Logger;
import org.gwu.seuss.communication.crypto.CryptoUtil;
import org.gwu.seuss.persistence.FilesMapper;
import org.gwu.seuss.persistence.SharedMapper;
import org.gwu.seuss.persistence.UsersMapper;
import org.gwu.seuss.persistence.UsersSharedFilesMapper;
import org.springframework.beans.factory.annotation.Autowired;

public class ServiceBase {
	
	static Logger log = Logger.getLogger(ServiceBase.class);

	@Autowired
	protected UsersMapper usersMapper;
	
	@Autowired 
	protected FilesMapper filesMapper;
	
	@Autowired 
	protected SharedMapper sharedMapper;
	
	@Autowired
	protected CryptoUtil cryptoUtil;

	@Autowired 
	protected UsersSharedFilesMapper usersSharedFilesMapper;
	
	public UsersSharedFilesMapper getUsersSharedFilesMapper() {
		return usersSharedFilesMapper;
	}

	public void setUsersSharedFilesMapper(UsersSharedFilesMapper usersSharedFilesMapper) {
		this.usersSharedFilesMapper = usersSharedFilesMapper;
	}

	public void setCryptoUtil(CryptoUtil cryptoUtil) {
		this.cryptoUtil = cryptoUtil;
	}

	public void setUsersMapper(UsersMapper usersMapper) {
		this.usersMapper = usersMapper;
	}

	public void setFilesMapper(FilesMapper filesMapper) {
		this.filesMapper = filesMapper;
	}

	public void setSharedMapper(SharedMapper sharedMapper) {
		this.sharedMapper = sharedMapper;
	}
	
	public UsersMapper getUsersMapper(){
		return usersMapper;
	}
}
